/*
Copyright (C) 2022-2024 Inspur Corp. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0
*/
package wsreg

import (
	"did-service/controller"

	"github.com/emicklei/go-restful"
)

func RegisterUserManageWebService(ws *restful.WebService, controller *controller.DidController) {
	ws.Route(ws.GET("/v1/um/user/list").To(controller.QueryUserList)).
		Route(ws.POST("/v1/um/user/create").To(controller.CreateUser)).
		Route(ws.PUT("/v1/um/user/{id}").To(controller.PutUser)).
		Route(ws.GET("/v1/um/user/info").To(controller.GetUserInfo)).
		Route(ws.POST("/v1/logout").To(controller.Logout))

}
